#!/usr/bin/env bash
cd dist
git add .
git commit -m "update dist"
git push
sed -i '' '/^<!--Deployed by/d' index.html
echo "<!--Deployed by `echo $USER` at `date "+%Y-%m-%d %H:%M:%S"`-->" >> index.html && git commit -am "auto deploying to gitee pages at `date`" && git push && ../.gitee-publish/curl.sh >/dev/null

echo "done!"
echo "https://falcon.gitee.io/"
